package com.uetoken.cn.utils;

import com.blankj.utilcode.util.ObjectUtils;
import com.uetoken.cn.R;

public class BlockchainUtils {


    public static int[] getPurseIcon(String purseName) {
        int newScale = 2;
        int purseIcon = 0;
        int[] blockchainInfo = new int[2];
        if (ObjectUtils.equals(purseName, "USDT")) {
            purseIcon = R.mipmap.ic_usdt;
            newScale = 8;
        } else if (ObjectUtils.equals(purseName, "EOS")) {
            purseIcon = R.mipmap.ic_eos;
            newScale = 4;
        } else if (ObjectUtils.equals(purseName, "BCH")) {
            purseIcon = R.mipmap.ic_bch;
            newScale = 8;
        } else if (ObjectUtils.equals(purseName, "BTC")) {
            purseIcon = R.mipmap.ic_btc;
            newScale = 8;
        } else if (ObjectUtils.equals(purseName, "ETH")) {
            purseIcon = R.mipmap.ic_eth;
            newScale = 5;
        } else {
            purseIcon = 0;
            newScale = 2;
        }
        blockchainInfo[0] = purseIcon;
        blockchainInfo[1] = newScale;
        return blockchainInfo;
    }
}
